-- GENERATED SPELL FOR [Shadowsworn Thug] --


function spell0_6005(pUnit, Event) --@Kick,n/a--
pUnit:FullCastSpellOnTarget(11978,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_6005', 6324, 1)
end

function spell1_6005(pUnit, Event) --@Snap Kick,n/a--
pUnit:FullCastSpellOnTarget(8646,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_6005', 2281, 1)
end

function spell2_6005(pUnit, Event) --@Thrash,Self--
pUnit:FullCastSpellOnTarget(3391,pUnit)
pUnit:RegisterEvent('Sorts_6005', 598, 1)
end

function Sorts_6005(pUnit, Event)
local choix_sorts_6005 = math.random(0, 2)
if choix_sorts_6005 == 0 then
pUnit:RegisterEvent('spell0_6005', 1, 1)
end
if choix_sorts_6005 == 1 then
pUnit:RegisterEvent('spell1_6005', 1, 1)
end
if choix_sorts_6005 == 2 then
pUnit:RegisterEvent('spell2_6005', 1, 1)
end
end

function mob6005_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_6005', math.random(1500, 3000), 1)
end

function mob6005_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob6005_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob6005_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(6005, 1, 'mob6005_Action')
RegisterUnitEvent(6005, 2, 'mob6005_Leave')
RegisterUnitEvent(6005, 3, 'mob6005_Kill')
RegisterUnitEvent(6005, 4, 'mob6005_Die')
